package drds.global_transaction.api.rpc.rpc_client;

import drds.global_transaction.api.message_codec.message_codec.Message;
import lombok.Getter;
import lombok.Setter;

public class Key
{
	@Setter
	@Getter
	private Role role;
	@Setter
	@Getter
	private String address;
	@Setter
	@Getter
	private Message message;

	public Key(Role role, String address)
	{
		this.role = role;
		this.address = address;
	}

	public Key(String address, Role role, Message message)
	{
		this.role = role;
		this.address = address;
		this.message = message;
	}

	public Key setRole(Role role)
	{
		this.role = role;
		return this;
	}

	public Key setAddress(String address)
	{
		this.address = address;
		return this;
	}

}
